/** When your routing sys is too long, you can split it into small modules **/

import Layout from '@/layout'

const sysRouter = {
  path: '/sys',
  component: Layout,
  redirect: '/sys/role',
  name: 'sys',
  meta: {
    title: '系统管理',
    icon: 'sys'
  },
  children: [
    {
      path: 'account',
      component: () => import('@/views/sys/account'),
      name: 'account',
      meta: {
        title: '账号管理',
        authorities:["sys:user"]
      }
    },
    {
      path: 'role',
      component: () => import('@/views/sys/role'),
      name: 'role',
      meta: {
        title: '角色管理',
        authorities:["sys:role"]
      }
    },
    {
      path: 'resource',
      component: () => import('@/views/sys/resource'),
      name: 'InlineEditsys',
      meta: {
        title: '资源管理',
        authorities:["sys:resource"]
      }
    }
  ]
}
export default sysRouter
